package com.knife.bbs.domain;

import java.util.Date;
import com.knife.dbo.IObject;

public class Vote implements IObject{

	private String cid;
	private String docid;
	private String title;
	private String info;
	private Integer num;
	private Date date;
	public String getKeyField() {
	
		return "cid";
	}

	public String getKeyGenerator() {
	
		return "com.knife.dbo.RandomIdGenerator";
	}

	public String getTableName() {	
		return "vote";
	}
	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getDocid() {
		return docid;
	}

	public void setDocid(String docid) {
		this.docid = docid;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	
	public String toString(){
		String ret="vote:    cid"+cid+"   docid"+docid+"   title"+title+"   num"+num+"   date"+date;
		return ret;
	}

	

}
